package cn.xiaok.springboot.service;

import cn.xiaok.springboot.entity.User;
import cn.xiaok.springboot.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xueqian.shi
 * @date 2020/9/19
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User find(int id) {
        return userMapper.find(id);
    }
}
